package com.simon.train.common.exception;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public enum BusinessExceptionEnum {

    MEMBER_MOBILE_EXIST("手机号已存在"),
    MEMBER_MOBILE_NOT_EXIST("手机号不存在，请先获取短信验证码完成账户自动注册！"),
    MOBILE_CODE_ERROR("短信验证码错误"),

    PASSENGER_NUMBER_TOO_MUCH("一个会员ID的乘车人数量不能超过50"),

    BUSINESS_STATION_NAME_UNIQUE_ERROR("车站已存在,请勿重复创建!"),
    BUSINESS_TRAIN_CODE_UNIQUE_ERROR("车次编号已存在"),
    BUSINESS_TRAIN_STATION_INDEX_UNIQUE_ERROR("同车次站序已存在"),
    BUSINESS_TRAIN_STATION_NAME_UNIQUE_ERROR("同车次站名已存在"),
    BUSINESS_TRAIN_CARRIAGE_INDEX_UNIQUE_ERROR("同车次厢号已存在"),

    CONFIRM_ORDER_TICKET_COUNT_YDZ_ERROR("一等座座位余票不足"),
    CONFIRM_ORDER_TICKET_COUNT_EDZ_ERROR("二等座座位余票不足"),
    CONFIRM_ORDER_TICKET_COUNT_YW_ERROR("硬卧余票不足"),
    CONFIRM_ORDER_TICKET_COUNT_RW_ERROR("软卧余票不足");


    private String desc;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                '}';
    }
}
